$(document).ready(function(){
    $("#store-auth-submit").on('click',function(){
        var data = {};
        data['id'] = $("#id").val();
        data['status'] = $("#status").val();
        data['reason'] = $("#reason").val();
        
        if($("#status").val()==2 && $("#reason").val()==""){
            layer.msg("请输入未通过原因");
            return false;
        }
        
        $params = JSON.stringify(data);
        console.log($params);

        $web_back = ajaxSynchroPostRequest("/adminstore/default/auth",$params);
        layer.msg($web_back.msg);
        if($web_back.success==1){
            window.location.href = '/adminstore/default/index';
        }
    });
});


